<section id="yt_menuwrap" class="block">
<div class="yt-main-in1 container">
  <div class="yt-main-in2 row-fluid">
	<div id="mgmenu1" class="mgmenu_container"><!-- Begin Mega Menu Container -->

        <ul class="mgmenu"><!-- Begin Mega Menu -->
            <li style="display: none;" class="mgmenu_button">Menu bdu.edu.vn</li><!-- Button (Mobile Devices) -->
            
           <li class="boder-box" style=""><a title="Về trang bdu.edu.vn" href="index.php"><i class="fa fa-home fa-lg"></i></a></li>
           <li class="boder-box" style=""><a href="index.php">Trang chủ </a></li>
		   
		   <?php
							include_once("libs/function_menu.php");	
							$q=mysql_query("select * from menu where menu.parent='1' and menu.show='1' order by menu.rank asc");
							$l="javascript:;";
							$arrmenu=array();
							array_push($arrmenu,"16");
							array_push($arrmenu,"17");
							if($q)
							{
								while($r=mysql_fetch_array($q))
								{	
									if ($r[5] =='')
										echo "<li class=\"boder-box\" style=\"\"><a href=\"daotao.php?id=$r[0]\" >$r[1]</a>";
									if ($r[5] !==''){
										echo "<li class=\"boder-box\" style=\"\"><a href=\"$r[5]\" >$r[1]</a>";
									}		
									$q1=mysql_query("select * from menu where menu.parent='$r[0]' and menu.show='1' order by menu.rank asc");
									$dong1=mysql_num_rows($q1);
									if($dong1 >0)
									{
										echo "<div style=\"display: none;\" class=\"dropdown_2columns dropdown_container\">";
										echo "<ul class=\"dropdown_flyout\">";
										while($r1=mysql_fetch_array($q1))
										{
											if (find_child($r1[0]) == 1)
											{		if ($r1[5] == '')
														echo "<li class=\"dropdown_parent\"><a href=\"daotao.php?id=$r1[0]\" >$r1[1]</a>";
													if ($r1[5] !==''){
														echo "<li class=\"dropdown_parent\"><a href=\"$r1[5]\" >$r1[1]</a>";
													}	
													echo "<ul style=\"display: none;\" class=\"dropdown_flyout_level\">";
													$q2=mysql_query("select * from menu where menu.parent='$r1[0]' and menu.show='1' order by menu.rank asc");	
													$dong2=mysql_num_rows($q2);
													if($dong2 >0)
													{
														while($r2=mysql_fetch_array($q2))
														{	
															if (find_child($r2[0]) == 1)
															{		if ($r2[5] == '')
																		echo "<li class=\"dropdown_parent\"><a href=\"daotao.php?id=$r2[0]\">$r2[1]</a>";
																	if ($r2[5] !== ''){	
																		echo "<li class=\"dropdown_parent\"><a href=\"$r2[5]\">$r2[1]</a>";
																	}	
																	echo "<ul style=\"display: none;\" class=\"dropdown_flyout_level\">";
																		$q3=mysql_query("select * from menu where menu.parent='$r2[0]' and menu.show='1' order by menu.rank asc");	
																		$dong3=mysql_num_rows($q2);
																		if($dong3 >0)
																		{
																			while($r3=mysql_fetch_array($q3))
																			{	if ($r3[5] == '')
																					echo "<li><a href=\"daotao.php?id=$r3[0]\">$r3[1]</a></li>";
																				if ($r3[5] !== ''){	
																					echo "<li><a href=\"$r3[5]\">$r3[1]</a></li>";
																				}
																			}
																		}	
																	echo "</ul>";
																echo "</li>";
															}
															else {
																				if ($r2[5] == '')
																					echo "<li><a href=\"daotao.php?id=$r2[0]\">$r2[1]</a></li>";
																				if ($r2[5] !== ''){	
																					echo "<li><a href=\"$r2[5]\">$r2[1]</a></li>";
																				}
															}	
														}
														echo "</ul>";
													}
													
													
												echo "</li>";
											}
											else{
												if ($r1[5] == '')
													echo "<li><a href=\"daotao.php?id=$r1[0]\">$r1[1]</a></li>";
												if ($r1[5] !== ''){	
													echo "<li><a href=\"$r1[5]\">$r1[1]</a></li>";
												}
											}	
										}
										echo "</ul>";
										echo "</div>";
									}
										
									echo "</li>";
									
								}
							}
							
			?>			
		   <!--
           <li class="boder-box" style=""><span>Giới thiệu</span>
                <div style="display: none;" class="dropdown_2columns dropdown_container">
                    <ul class="dropdown_flyout">
                        <li><a href="#" >Giới thiệu chung</a></li>
                        <li><a href="#">Chức năng nhiệm vụ</a></li>
                        <li><a href="#">Cơ cấu tổ chức</a></li>
                        <li><a href="#">Lịch làm việc</a></li>
                        <li><a href="#">Thông tin liên hệ</a></li>
                        <li><a href="#">Email | CB-CNV</a></li>
                  </ul>                       
                </div>
            </li>
			-->
           
		   
		   
           
            <!-- End Item -->
            
        </ul><!-- End Mega Menu -->
    </div>                                
                                
   </div>
</div>   
</section>